<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title><?php echo ($_page_title); ?></title>
    <link rel='canonical' href='http://www.zk12774962.icoc.me'>



    <link type="text/css" href="http://2.ss.faisys.com/css/base2.min.css?v=201703291155" rel="stylesheet" />
    <link type="text/css" href="http://1.jzs.faisys.com/636/fkTheme.min.css?v=20170329150142" rel="stylesheet" id="jzThemeFrame"/>



    <link type='text/css' href='http://2.ss.faisys.com/css/searchBoxStyle1.min.css?v=201608161755' rel='stylesheet'>


    <link type="text/css" href="http://2.ss.faisys.com/css/site/poshytipAndmCustomScrollbar.min.css?v=201612061717" rel="stylesheet" />







    <link type="text/css" href="jzcusstyle.jsp?colId=2&extId=0" rel="stylesheet" />

    <style id='stylemodule'>
    </style>
    <style id='styleWebSite' type='text/css'>
        #memberBar{width:960px;}
        #webTop{width:960px;}
        #absTopForms{width:960px;}
        .webNavDefault{width:960px;}
        #webHeader{width:960px;}
        #absForms{width:960px;}
        div#webContainer{width:960px;}
        #absBottomForms{width:960px;}
        #webFooter{width:960px;}
        div.webNav .navMainContent{width:960px;}
        div.nav .navMainContent{width:960px;}
        .fullmeasureContent{width:960px;}
        #fk-webHeaderZone {width:960px;margin-left:-480.0px;}
        #fk-webFooterZone {width:960px;margin-left:-480.0px;}
        #fk-webBannerZone {width:960px;margin-left:-480.0px;}
        #webBanner{width:100%;}
    </style>
    <style id='styleTitle' type='text/css'>
    </style>





    <script type="text/javascript">

        (function(FUN,undefined){var list=[];FUN.run=function(){if(arguments.length<1){throw new Error("jzUtils.run 参数错误");return}var name=arguments[0].name,callMethod=arguments[0].callMethod||false,prompt=arguments[0].prompt||false,promptMsg=arguments[0].promptMsg||"功能还在加载中，请稍候",base=arguments[0].base||(window.Fai&&Fai.top.Site)||top.Site||window,args=Array.prototype.slice.call(arguments),funcArgs=args.slice(1),callbackFunc={},result;result=checkMethod(name,base);if(result.success){callMethod=false;try{result.func.apply(result.func,funcArgs)}catch(e){console&&console.log&&console.log("错误:name="+e.name+"; message="+e.message)}}else{if(prompt){window.Fai&&Fai.ing(promptMsg,true)}}if(callMethod){callbackFunc.name=name;callbackFunc.base=base;callbackFunc.args=funcArgs;list.push(callbackFunc)}};FUN.trigger=function(option){if(typeof option!=="object"){throw new Error("jzUtils.trigger 参数错误");return}var funcName=option.name||"",base=option.base||(window.Fai&&Fai.top.Site)||top.Site||window,newList=[],result,func,i,param;if(funcName.length<1){return}for(i=0;i<list.length;i++){param=list[i];if(param.name==funcName){result=checkMethod(funcName,base);if(result.success){try{result.func.apply(result.func,param.args)}catch(e){console&&console.log&&console.log("错误:name="+e.name+"; message="+e.message)}}}else{newList.push(param)}}list=newList};function checkMethod(funcName,base){var methodList=funcName.split("."),readyFunc=base,result={"success":true,"func":function(){}},methodName,i;for(i=0;i<methodList.length;i++){methodName=methodList[i];if(methodName in readyFunc){readyFunc=readyFunc[methodName]}else{result.success=false;return result}}result.func=readyFunc;return result}})(window.jzUtils||(window.jzUtils={}))

    </script>


</head>
<body>
<!-- -->

<link rel="stylesheet" href="/Public/Home/style/order.css" type="text/css">
<link rel="stylesheet" href="/Public/Home/style/address.css" type="text/css">
<script type="text/javascript" src="/Public/Home/js/home.js"></script>
<link rel="stylesheet" href="/Public/Home/style/home.css" type="text/css">
<div style="clear:both;"></div>
<!-- 头部 start -->
<div class="header w1210 bc mt15">
    <!-- 头部上半部分 start 包括 logo、搜索、用户中心和购物车结算 -->
    <div class="logo w1210">
        <h1 class="fl"><a href="<?php echo U('Index/index');?>"><img src="/Public/Home/images/logo.png" alt="京西商城"></a></h1>
        <!-- 头部搜索 start -->
        <div class="search fl">
            <div class="search_form">
                <div class="form_left fl"></div>
                <form  name="search" method="get" class="fl">
                    <input id="key" name="key" type="text" class="txt"
                           value="<?php echo I('get.key','请输入商品关键字')?>"/>
                    <input onclick="location.href='<?php echo U('Search/key_search', '',FALSE); ?>/key/'+$('#key').val();" type="button" class="btn" value="搜索" />
                </form>
                <div class="form_right fl"></div>
            </div>

            <div style="clear:both;"></div>

            <div class="hot_search">
                <strong>热门搜索:</strong>
                <a href="">D-Link无线路由</a>
                <a href="">休闲男鞋</a>
                <a href="">TCL空调</a>
                <a href="">耐克篮球鞋</a>
            </div>
        </div>
        <!-- 头部搜索 end -->

        <!-- 用户中心 start-->
        <div class="user fl">
            <dl>
                <dt>
                    <em></em>
                    <a href="">用户中心</a>
                    <b></b>
                </dt>
                <dd>
                    <div class="prompt">
                        您好，请<a href="">登录</a>
                    </div>
                    <div class="uclist mt10">
                        <ul class="list1 fl">
                            <li><a href="">用户信息></a></li>
                            <li><a href="">我的订单></a></li>
                            <li><a href="">收货地址></a></li>
                            <li><a href="">我的收藏></a></li>
                        </ul>

                        <ul class="fl">
                            <li><a href="">我的留言></a></li>
                            <li><a href="">我的红包></a></li>
                            <li><a href="">我的评论></a></li>
                            <li><a href="">资金管理></a></li>
                        </ul>

                    </div>
                    <div style="clear:both;"></div>
                    <div class="viewlist mt10">
                        <h3>最近浏览的商品：</h3>
                        <ul id="navhistory">
                        </ul>
                    </div>
                </dd>
            </dl>
        </div>
        <!-- 用户中心 end-->

        <!-- 购物车 start -->
        <div class="cart fl" >
            <dl>
                <dt>
                    <a  id="cart_list" href="<?php echo U('Cart/lst');?>">去购物车结算</a>
                </dt>
                <dd>
                    <div class="prompt" id="cart_div_list">
                        <img href="#" src ="/Public/Home/images/loading.gif"/>
                    </div>
                </dd>
            </dl>
        </div>
        <!-- 购物车 end -->
    </div>
    <!-- 头部上半部分 end -->

    <div style="clear:both;"></div>

    <!-- 导航条部分 start -->
    <div class="nav w1210 bc mt10">
        <!--  商品分类部分 start-->
        <div class="category fl <?php if($_show_nav==0) echo 'cat1'?>" >
            <div class="cat_hd <?php if($_show_nav==0) echo 'off'?>">  <!-- 注意，首页在此div上只需要添加cat_hd类，非首页，默认收缩分类时添加上off类，鼠标滑过时展开菜单则将off类换成on类 -->
                <h2>全部商品分类</h2>
                <em></em>
            </div>

            <div class="cat_bd <?php if($_show_nav==0) echo 'none'?>" >
                <?php foreach($catData as $k => $v): ?>
                <div class="cat <?php if($_show_nav==0) echo 'item1'?>">
                    <h3><a href="<?php echo U('Search/cat_search?cat_id='.$v['id'],'',FALSE)?>"><?php echo $v['cate_name']?></a> <b></b></h3>
                    <div class="cat_detail none">
                        <?php foreach($v['children'] as $k1 => $v1):?>
                        <dl <?php if($k1 ==0 ) echo 'class =dl_lst'?>>
                            <dt><a href="<?php echo U('Search/cat_search?cat_id='.$v1['id'],'',FALSE)?>"><?php echo $v1['cate_name']?></a></dt>
                            <dd>
                               <?php foreach($v1['children'] as $k2 => $v2):?>
                            <a href="<?php echo U('Search/cat_search?cat_id='.$v2['id'],'',FALSE)?>"><?php echo $v2['cate_name']?></a>
                                <?php endforeach?>
                            </dd>
                        </dl>
                        <?php endforeach?>
                    </div>
                </div>
                <?php endforeach?>
            </div>
        </div>
        <!--  商品分类部分 end-->

        <div class="navitems fl">
            <ul class="fl">
                <li class="current"><a href="">首页</a></li>
                <li><a href="">电脑频道</a></li>
                <li><a href="">家用电器</a></li>
                <li><a href="">品牌大全</a></li>
                <li><a href="">团购</a></li>
                <li><a href="">积分商城</a></li>
                <li><a href="">夺宝奇兵</a></li>
            </ul>
            <div class="right_corner fl"></div>
        </div>
    </div>
    <!-- 导航条部分 end -->
</div>
<!-- 头部 end-->
<div style="clear:both;"></div>
<script>
    <?php $ic=C('IMAGE_CONFIG');?>
    var picView ="<?php echo $ic['viewPath']?>";
    $("#cart_list").mouseover(function () {
        $.ajax({
            type:'GET',
            url:"<?php echo U('Cart/ajaxCartList')?>",
            dataType:'json',
            success:function (data) {
                var html ="<table style='background-color: ivory'>";
                $(data).each(function (k,v) {
                    html +="<tr>";
                    html +='<td style="width: 100px"><img href="#" width="50" src="'+picView+v.mid_logo+'" /></td>';
                    html +='<td>'+v.goods_name+'</td>';
                    html +='</tr>'
                });
                html +='<table>';
                $('#cart_div_list').html(html);
            }
        })
    });

    <?php $config =C('IMAGE_CONFIG')?>
    var viewPath ='<?php echo $config['viewPath']?>';
    $.ajax({
        type: 'GET',
        url: "<?php echo U('Index/displayHistory?id='.$info['id'])?>",
        dataType: 'json',
        success:function (data) {
            var html = "";
            $(data).each(function (k,v) {
                html +='<li><a href="<?php echo U('goods','',FALSE); ?>/id/'+v.id+'"><img src=" '+viewPath+v.mid_logo+'"/></a>' +
                '<a href="<?php echo U('goods','',FALSE);?>/id/'+v.id +'">'+v.goods_name+'</a></li>';
            });
            $("#navhistory").html(html);
        }
    });

    </script>
<!-- 页面主体 start -->
<div class="main w1210 bc mt10">
    <div class="crumb w1210">
        <h2><strong>我的XX </strong><span> 我的订单</span></h2>
    </div>
    <!-- 左侧导航菜单 start -->
<div class="menu fl">
    <h3>我的XX</h3>
    <div class="menu_wrap">
        <dl>
            <dt>订单中心 <b></b></dt>
            <dd class="cur"><b>.</b><a href="<?php echo U('order');?>">我的订单</a></dd>
            <dd><b>.</b><a href="">我的关注</a></dd>
            <dd><b>.</b><a href="">浏览历史</a></dd>
            <dd><b>.</b><a href="">我的团购</a></dd>
        </dl>

        <dl>
            <dt>账户中心 <b></b></dt>
            <dd><b>.</b><a href="">账户信息</a></dd>
            <dd><b>.</b><a href="">账户余额</a></dd>
            <dd><b>.</b><a href="">消费记录</a></dd>
            <dd><b>.</b><a href="">我的积分</a></dd>
            <dd><b>.</b><a href="<?php echo U('UserAddress/lst');?>">收货地址</a></dd>
        </dl>

        <dl>
            <dt>订单中心 <b></b></dt>
            <dd><b>.</b><a href="">返修/退换货</a></dd>
            <dd><b>.</b><a href="">取消订单记录</a></dd>
            <dd><b>.</b><a href="">我的投诉</a></dd>
        </dl>
    </div>
</div>
<!-- 左侧导航菜单 end -->
    <!-- 右侧内容区域 start -->
    <div class="content fl ml10">
        <div class="address_hd">
            <h3>收货地址薄</h3>
            <?php foreach($data as $k => $v):?>
            <dl>
                <dt id="">
                    <?php echo ($v["consignee"]); ?>
                    <?php echo $v['province']['region_name'];?>
                    <?php echo $v['city']['region_name'];?>
                    <?php echo $v['district']['region_name'];?>
                    <?php echo ($v["address"]); ?>
                    <?php echo ($v["mobile"]); ?>
                    <?php if($v['is_default']==1):?><font color="red">[默认]</font><?php endif?>
                </dt>
                <dd>
                    <a href="<?php echo U('UserAddress/edit');?>?id=<?php echo ($v["id"]); ?>">修改</a>
                    <a <?php if($v['is_default']==1) echo hidden?> href="<?php echo U('UserAddress/delete');?>?id=<?php echo ($v["id"]); ?>" onclick="if(!confirm('是否删除该地址?')){return false}">删除</a>
                    <a href="<?php echo U('UserAddress/setDefault');?>?id=<?php echo ($v["id"]); ?>" onclick="if(!confirm('是否设置为默认地址!')){return false}">设为默认地址</a>
                </dd>
            </dl>
            <?php endforeach ?>
        </div>

        <div class="address_bd mt10">
            <h4>新增/修改收货地址</h4>
            <form action="<?php if($info):echo U('UserAddress/edit');else:echo U('UserAddress/add'); endif?>" name="address_form" method="post">
                <ul>
                    <li>
                        <label for=""><span>*</span>收 货 人：</label>
                        <input type="text" name="consignee" class="txt" value="<?php echo ($info["consignee"]); ?>"/>
                    </li>
                    <li>
                        <label for=""><span>*</span>所在地区：</label>
                        <select name="province" id="province">
                            <option value="">请选择</option>
                        </select>

                        <select name="city" id="city">
                            <option value="">请选择</option>
                        </select>

                        <select name="district" id="district">
                            <option value="">请选择</option>
                        </select>
                    </li>
                    <li>
                        <label for="address"><span>*</span>详细地址：</label>
                        <input type="text" name="address" id="address" class="txt address" value="<?php echo ($info["address"]); ?>" />
                    </li>
                    <li>
                        <label for="mobile"><span>*</span>手机号码：</label>
                        <input type="text" name="mobile" id="mobile" class="txt" value="<?php echo ($info["mobile"]); ?>"/>
                    </li>
                    <li>
                        <label for="">&nbsp;</label>
                        <input type="submit" class="btn" value="保存" />
                        <a href="<?php echo U('UserAddress/lst');?>">添加</a>
                    </li>
                </ul>
                <input type="hidden" name="member_id" value="<?php echo ($info["member_id"]); ?>" />
                <input type="hidden" name="id" value="<?php echo ($info["id"]); ?>" />
            </form>
        </div>

    </div>
    <!-- 右侧内容区域 end -->
</div>
<!-- 页面主体 end-->

<!-- 底部导航 end -->
<!-- 页面主体 start -->
<script>

    $(function () {
        <?php if($info):?>
        var region ={province:"<?php echo ($info["province"]); ?>",city:"<?php echo ($info["city"]); ?>",district:"<?php echo ($info["district"]); ?>"};
        $.each(region,function (region_name,region_id) {
            if(region_name == 'province'){
                parent_region_id =1;
            }else if(region_name=='city'){
                parent_region_id =region.province;
            }else if(region_name=='district'){
                parent_region_id = region.city;
            }
            $.ajax({
                url:'<?php echo U("UserAddress/region")?>',
                type:'get',
                data:'id='+parent_region_id,
                dataType:'json',
                success:function (data) {
                    $.each(data,function (k,v) {
                        $('#'+region_name).append(new Option(v.region_name,v.region_id,(region_id==v.region_id ? true : false),
                            (region_id==v.region_id ? true:false)));

                    });
                }
            });
    });
        <?php else:?>
        $.ajax({
            url:'<?php echo U("UserAddress/region")?>',
            type:'get',
            dataType:'json',
            success:function (data) {
                $.each(data,function (k,v) {
                    $('#province').append("<option value='"+v.region_id+"'>"+v.region_name+"</option>");
                });
            }
        });
<?php endif;?>
        $("#province,#city").change(function () {
            var select = $(this);
            $.ajax({
                url:'<?php echo U("UserAddress/region")?>',
                type:'get',
                data:'id='+select.val(),
                dataType:'json',
                success:function (data) {
                    select.nextAll('select').empty().append(new Option('请选择'));
                    $.each(data,function (k,v) {
                        select.next().append(new Option(v.region_name,v.region_id));
                    });
                }
            });
        });
    });

</script>
<div style="clear:both;"></div>
<!-- 底部导航 start -->
<div class="bottomnav w1210 bc mt10">
    <div class="bnav1">
        <h3><b></b> <em>购物指南</em></h3>
        <ul>
            <li><a href="">购物流程</a></li>
            <li><a href="">会员介绍</a></li>
            <li><a href="">团购/机票/充值/点卡</a></li>
            <li><a href="">常见问题</a></li>
            <li><a href="">大家电</a></li>
            <li><a href="">联系客服</a></li>
        </ul>
    </div>

    <div class="bnav2">
        <h3><b></b> <em>配送方式</em></h3>
        <ul>
            <li><a href="">上门自提</a></li>
            <li><a href="">快速运输</a></li>
            <li><a href="">特快专递（EMS）</a></li>
            <li><a href="">如何送礼</a></li>
            <li><a href="">海外购物</a></li>
        </ul>
    </div>


    <div class="bnav3">
        <h3><b></b> <em>支付方式</em></h3>
        <ul>
            <li><a href="">货到付款</a></li>
            <li><a href="">在线支付</a></li>
            <li><a href="">分期付款</a></li>
            <li><a href="">邮局汇款</a></li>
            <li><a href="">公司转账</a></li>
        </ul>
    </div>

    <div class="bnav4">
        <h3><b></b> <em>售后服务</em></h3>
        <ul>
            <li><a href="">退换货政策</a></li>
            <li><a href="">退换货流程</a></li>
            <li><a href="">价格保护</a></li>
            <li><a href="">退款说明</a></li>
            <li><a href="">返修/退换货</a></li>
            <li><a href="">退款申请</a></li>
        </ul>
    </div>

    <div class="bnav5">
        <h3><b></b> <em>特色服务</em></h3>
        <ul>
            <li><a href="">夺宝岛</a></li>
            <li><a href="">DIY装机</a></li>
            <li><a href="">延保服务</a></li>
            <li><a href="">家电下乡</a></li>
            <li><a href="">京东礼品卡</a></li>
            <li><a href="">能效补贴</a></li>
        </ul>
    </div>
</div>





</body>
<link type='text/css' href=http://2.ss.faisys.com/css/fontsIco.min.css?v=201703271741 rel='stylesheet' />